local UIBase = import("UI/UIBase")
--if not Cookie then
--    Cookie = Slua.GetClass('KSFramework.Cookie')
--end

local UIMenuPanel = {}
extends(UIMenuPanel, UIBase)

function UIMenuPanel:OnInit(controller)
    self.Controller = controller
    self.TitleLabel = self:GetUIText('Title')
end

function UIMenuPanel:OnOpen()

	
    print("UIMenuPanel:Open")
    -- local rand

    -- if not LuaBehaviour then LuaBehaviour = CS.KSFramework.LuaBehaviour end
    -- LuaBehaviour.Create(self.Controller.CachedGameObject, 'Behaviour/TestLuaBehaviour')
    --rand = Cookie.Get('UIBillboard.RandomNumber')
    --if not rand then
        -- rand = math.random(1,3)
    --    Cookie.Set('UIBillboard.RandomNumber', rand)
    --end
    -- local billboardSetting = CS.AppSettings.BillboardSettings.Get('Billboard' .. tostring(rand))
    -- self.TitleLabel.text = "This is a title"
    -- self.ContentLabel.text = "Here is content!"
    -- self.TitleLabel.text = billboardSetting.Title
    -- self.ContentLabel.text = billboardSetting.Content
end

return UIMenuPanel
